package com.bwie.service;

import com.bwie.pojo.TbOrder;
import com.bwie.pojo.TbReceive;
import com.bwie.pojo.TbShipments;
import com.bwie.service.impl.FeignServiceImpl;
import com.bwie.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Title:
 * @BelongProjecet practice2
 * @BelongPackage com.bwie.service
 * @Description:
 * @Copyright 研发一部
 * @Author: Mr.yan
 * @Date: 2024/6/7 15:21
 * @Version V1.0
 */
@Service
@FeignClient(value = "practice2-orderInfo",fallback = FeignServiceImpl.class)
public interface FeignService {

    @PostMapping("/info/info/addShipments")
    public R addShipments(
            @RequestBody TbOrder tbOrder
    );

    @PostMapping("/info/info/addReceive")
    public R addReceive(
            @RequestBody TbOrder tbOrder
    );

}
